package cn.tedu.submarine;

import javax.swing.*;
import java.util.Random;

/*
水雷潜艇
 */
public class MineSubmarine extends SeaObject implements /*EnemyScore,*/EnemyLife{
    MineSubmarine(){
        super(63,19);
    }

    /*重写Move移动*/
    public void move() {
        x += speed;
    }

    public ImageIcon getImage(){
        return Images.minesubm;
    }

    /**生成水雷对象*/
    public Mine shootMine(){
        int x = this.x + this.width;
        int y = this.y - 5;
        return new Mine(x,y);
    }
    /*public int getScore(){
        return  20;
    }*/
    public int getLife(){
        return 1;
    }
}
